import { SET_MSG } from "../actionTypes/homeType";
const initState = {
  msg: "我是首页",
  day: "星期五！！！"
};
export default (state = initState, action) => {
  // console.log("home:", action);
  const newState = JSON.parse(JSON.stringify(state));
  switch (action.type) {
    case SET_MSG:
      newState.msg = action.value;
      return newState;
    default:
      return state;
  }
};
